<template>
  <div>about页面</div>
</template>

<script>
import { useRoute } from "vue-router";
export default {
  setup() {
    // route表示当前路由的路由信息
    const route = useRoute();
    console.log(route.params.id);
  },
};
</script>
